class bsp_node : public plane
{
public:
bsp_node *child[2];
bsp_object
*elem, **last_elem;
int leaf;
vector color;
bsp_node()
{ child[0]=child[1]=0; elem=0; leaf=-1; last_elem=&elem; };
virtual ~bsp_node();
};
Member | Type | Description |
---|---|---|
child | char[] * | the two children |
elem | bsp_object * | linked list of elements in node (if this is a leaf node) |
last_elem | bsp_object ** | pointer to last element in elem linked list |
leaf | int | leaf index (-1 if not a leaf node) |
color | vector | ambient color of node (if this is a leaf node) |
None
This class implements a bsp tree node. All nodes at the end of the tree are considered leaves and they include a linked list of elements (Fly3D plug-in objects) inside the node and node ambient color.